package com.lelv.business.route.bo;

import java.util.List;

import com.lelv.business.route.dao.IRoutePreDao;
import com.lelv.business.route.model.RoutePre;
import com.lelv.framework.plugin.Page;

public class RoutePreBoImpl implements IRoutePreBo {

	private IRoutePreDao routePreDao;

	public IRoutePreDao getRoutePreDao() {
		return routePreDao;
	}

	public void setRoutePreDao(IRoutePreDao routePreDao) {
		this.routePreDao = routePreDao;
	}

	@Override
	public void addRoutePre(RoutePre rp) {
		// TODO Auto-generated method stub
		this.routePreDao.addRoutePre(rp);
	}

	@Override
	public List getRoutePreByUid(Long uid) {
		// TODO Auto-generated method stub
		return this.routePreDao.getRoutePreByUid(uid);
	}

	@Override
	public void deleteRoutePre(Long id) {
		// TODO Auto-generated method stub
		this.routePreDao.deleteRoutePre(id);
	}

	@Override
	public void deleteRoutePre(Long uid, Long rid) {
		// TODO Auto-generated method stub
		this.routePreDao.deleteRoutePre(uid, rid);
	}

	@Override
	public Page getRoutePrePage(Page page) {
		// TODO Auto-generated method stub
		return this.routePreDao.getRoutePrePage(page);
	}

	@Override
	public RoutePre getRoutePreById(Long id) {
		// TODO Auto-generated method stub
		return this.routePreDao.getRoutePreById(id);
	}

	@Override
	public void updateRoutePre(RoutePre pre) {
		// TODO Auto-generated method stub
		this.routePreDao.updateRoutePre(pre);
	}

}
